<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            color: aliceblue;
            font-size: 28px;
            text-decoration: none;
            margin: 10px;
        }
        .btn1 {
            position: relative;
            display: block;
            width: 140px;
            height: 60px;
            padding: 5px;
            border-radius: 6px;
            text-align: center;
            line-height: 60px;
            background: linear-gradient(115deg,#ff0000,#ffff00,#00ff00,#00ffff,#ff00ff);
            overflow: hidden;
        }
        .btn1:hover:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 100%;
            background: linear-gradient(115deg,#ff0000,#ffff00,#00ff00,#00ffff,#ff00ff);
            background-size: 50% 100%;
            animation: move 1s linear infinite;
        }
        @keyframes move {
            to {
                transform: translateX(-50%);
            }
        }
        
        .btn1 span {
            position: relative;
            display: block;
            width: 100%;
            height: 100%;
            background-color: #000;
            border-radius: 6px;
        }

        .btn2 {
            position: relative;
            display: block;
            height: 60px;
            width: 140px;
            border-radius: 4px;
            line-height: 60px;
            text-align: center;
            color: aliceblue;
            /* background-image: conic-gradient(transparent,transparent,transparent,#00ccff); */
            overflow: hidden;
        }
        .btn2::before {
            content: '';
            position: absolute;
            height: 100%;
            width: 100%;
            background-image: conic-gradient(transparent,transparent,transparent,#00ccff);
            animation: rotate 2s linear infinite;
        }
        .btn2::after {
            content: '';
            position: absolute;
            inset: 3px;
            background-color: #000;
            border-radius: 5px;
        }
        @keyframes rotate {
            to {
                transform: rotate(360deg);
            }
        }
    </style>

</head>
<body>
    <a href="#" class="btn1">
        <span>开始按钮</span>
    </a>
    <a href="#" class="btn2">
        <span>开始按钮</span>
    </a>
</body>
</html>